From 9b60d6430dffcb59f58fe0cf63c27ef6ee3714d6 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 3 Jan 2001 13:49:32 +0000 Subject: [PATCH] (Frecenter): When changing the window start, set the window's window_end_valid to nil. (Fwindow_end): Fix window-end computation when UPDATE is non-nil. --- src/window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/window.c b/src/window.c index ac12c1ee804..5d779026bad 100644 --- a/src/window.c +++ b/src/window.c @@ -908,6 +908,7 @@ if it isn't already recorded.") cope with variable-height lines. */ start_display (&it, w, startp); move_it_vertically (&it, window_box_height (w)); + move_it_past_eol (&it); value = make_number (IT_CHARPOS (it)); } else @@ -4555,6 +4556,7 @@ and redisplay normally--don't erase and redraw the frame.") /* Set the new window start. */ set_marker_both (w->start, w->buffer, charpos, bytepos); + w->window_end_valid = Qnil; w->force_start = Qt; if (bytepos == BEGV_BYTE || FETCH_BYTE (bytepos - 1) == '\n') w->start_at_line_beg = Qt; -- 2.30.2